package cn.edu.ujn.bmis.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name = "brRtRn")
public class BrRtRn {
	
	private long id;
	private UserInfo brUser;//借阅人员
	private Book book;
	private String borrowTime;
//	private UserInfo bUser;//借阅操作员
	private String bOperatorId;//借阅操作员
	private String renewTime;
//	private UserInfo rnUser;//续借操作员
	private String rnOperatorId;//续借操作员
	private String returnTime;
//	private UserInfo rtUser;//还书操作员
	private String rtOperatorId;//还书操作员
	private int overdueDay;
	private String pay;
	private String endBorrowTime;//借阅到期
	private String endRenewTime;//续借到期
	
	
	public BrRtRn() {
		
	}

	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "userId")
	public UserInfo getBrUser() {
		return brUser;
	}

	public void setBrUser(UserInfo brUser) {
		this.brUser = brUser;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "bookId")
	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public String getBorrowTime() {
		return borrowTime;
	}

	public void setBorrowTime(String borrowTime) {
		this.borrowTime = borrowTime;
	}
	
	public String getRenewTime() {
		return renewTime;
	}

	public void setRenewTime(String renewTime) {
		this.renewTime = renewTime;
	}
	
	public String getReturnTime() {
		return returnTime;
	}

	public void setReturnTime(String returnTime) {
		this.returnTime = returnTime;
	}
	
	public int getOverdueDay() {
		return overdueDay;
	}

	public void setOverdueDay(int overdueDay) {
		this.overdueDay = overdueDay;
	}

	public String getPay() {
		return pay;
	}

	public void setPay(String pay) {
		this.pay = pay;
	}

	public String getEndBorrowTime() {
		return endBorrowTime;
	}

	public void setEndBorrowTime(String endBorrowTime) {
		this.endBorrowTime = endBorrowTime;
	}

	public String getEndRenewTime() {
		return endRenewTime;
	}

	public void setEndRenewTime(String endRenewTime) {
		this.endRenewTime = endRenewTime;
	}

	public String getbOperatorId() {
		return bOperatorId;
	}

	public void setbOperatorId(String bOperatorId) {
		this.bOperatorId = bOperatorId;
	}

	public String getRnOperatorId() {
		return rnOperatorId;
	}

	public void setRnOperatorId(String rnOperatorId) {
		this.rnOperatorId = rnOperatorId;
	}

	public String getRtOperatorId() {
		return rtOperatorId;
	}

	public void setRtOperatorId(String rtOperatorId) {
		this.rtOperatorId = rtOperatorId;
	}
}
